import 'element-plus/dist/index.css'
import { createApp } from 'vue'
import App from './App.vue'
import ElementPlus from 'element-plus'
import router from '@/router/index.js'
import {createPinia} from 'pinia'
import {createPersistedState} from "pinia-plugin-persistedstate";
const pinia =createPinia()
//配置状态存储使用SessionStorage
const ps = createPersistedState({
    storage:sessionStorage
})
pinia.use(ps)

createApp(App)
    .use(ElementPlus)
    .use(router)
    .use(pinia)
    .mount('#app')
